home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rockford Magazine
/
Rockford_Magazine_015_19xx_-_de_Side_A.d64
/
lotto 64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
991b
|
47 lines
10 rem lottozahlen
20 rem (w) 9/1992 thomas kneissler
30 rem
40 dim f(49)
50 poke 53280,0:poke 53281,0:poke 646,15
60 print chr$(14);chr$(147);
70 print:print tab(11);"[204] o t t o 6 4"
80 print:print
90 print"[215]ie heisst das heutige [196]atum?":input da$
100 print:print"[194]itte [196]rucker anschalten,"
110 print"[208]apier einlegen und eine [212]aste druecken!"
120 get a$:if a$="" then 120
130 open 1,4,2
140 print#1,chr$(27);"@";:rem reset
150 print#1,chr$(27);"l";chr$(10);:rem linker rand
160 print#1,chr$(27);"[208]";:rem pica ein
170 print#1,chr$(27);"x1";:rem nlq ein
180 print#1,chr$(27);"k";chr$(1);:rem nlq-schriftart
190 print#1,chr$(27);"w";chr$(1);:rem breitdruck ein
200 print#1," [204] o t t o 6 4"
210 print#1,chr$(27);"w";chr$(0);:rem breitdruck aus
220 print#1,:print#1,"[198]olgende [204]ottozahlen wurden"
230 print#1,"am ";da$;" ermittelt:":print#1,
240 for ru=1 to 10
250 print#1,"[211]piel";:if ru<10 then print#1," ";
260 print#1,ru;": ";
270 gosub 350
280 print#1,:print#1,
290 next ru
300 close 1
310 end
320 :
330 :
340 rem lottozahlen errechnen
350 z=rnd(-ti)
360 for j=1 to 49
370 f(j)=0
380 next j
390 for x=1 to 6
400 z=int(rnd(1)*49)+1
410 if f(z)<>0 then 400
420 f(z)=1
430 if z<10 then print#1," ";
440 print#1, z;
450 next x
460 return